package com.xyg.sample.service;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xyg.sample.model.Student;
import com.xyg.sample.repository.StudentDao;
import com.xyg.support.Message;



@Service
public class StudentService {
	@Autowired
	private StudentDao studentDao;
	
	/*@Autowired
	private CourseDao courseDao;
	
	@Autowired
	private ScoreDao scoreDao;*/
	
	@Transactional
	public Message saveStudent(Student student) {
		studentDao.save(student);
		return Message.success("success");
	}
	
	
}
